<%--
  Created by IntelliJ IDEA.
  User: 张乐
  Date: 2020/4/12
  Time: 12:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>展示全部</title>
</head>
<body>
<table border="0" cellspacing="2" cellpadding="2" align="center">
    <tr>
        <td>学生id</td>
        <td>学生姓名</td>
        <td>学生密码</td>
        <td>学生电话</td>
        <td>班级名称</td>
        <td>老师</td>
        <td>班主任</td>
        <td>班级创立时间</td>
        <td colspan="2">操作</td>
    </tr>
    <c:forEach var="v" items="${list1}">
        <tr>
            <td>${v.user_id}</td>
            <td>${v.name}</td>
            <td>${v.password}</td>
            <td>${v.tel}</td>
            <td>${v.classes.cname}</td>
            <td>${v.classes.teacher}</td>
            <td>${v.classes.author}</td>
            <td>${v.classes.create_date}</td>
            <td>
                <a href="${pageContext.request.contextPath}/userinfo/remove/${v.user_id}">删除</a>
                <a href="${pageContext.request.contextPath}/userinfo/findOne?user_id=${v.user_id}">修改</a>
            </td>
        </tr>
    </c:forEach>
    <tr>
        <td>
            <a href="${pageContext.request.contextPath}/userinfo/toinsert">添加</a>
        </td>
    </tr>
</table>
<div align="center">
    <h1><a href="${pageContext.request.contextPath}/classes/tomain">返回主页面</a></h1>
</div>
</body>
</html>
